package com.kn.musicmanagement.service;

import com.kn.musicmanagement.controller.Result;
import com.kn.musicmanagement.pojo.Singer;
import org.springframework.transaction.annotation.Transactional;

import javax.mail.MessagingException;
import java.util.List;

@Transactional
public interface SingerService {

    /**
     * 查询所有歌手
     *
     * @return
     */
    List<Singer> getAllSinger();

    /**
     * 查询音乐人申请
     *
     * @return 音乐人申请列表
     */
    Result getUnapprovedSinger();

    /**
     * 查询音乐人详情
     *
     * @return 音乐人详情信息
     */
    Result getSingerDe(String singer_ID);

    /**
     * 通过音乐人申请
     *
     * @return
     */
    Result ApprovedSinger(String singer_ID, String singer_Name) throws MessagingException;

    /**
     * 不通过音乐人申请
     *
     * @return
     */
    Result NoExamineSinger(String singer_ID, String singer_Name, String examination) throws MessagingException;
}
